Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flipper fails with Redis >= 4.8.0 #660

Merged
merged 6 commits into from
Aug 25, 2022
Merged

Conversation

bf4
Copy link
Contributor

@bf4 bf4 commented Aug 23, 2022

closes #659

lib/flipper/adapters/redis.rb Outdated Show resolved Hide resolved
@bkeepers bkeepers merged commit 41d19fb into flippercloud:master Aug 25, 2022
@bkeepers
Copy link
Collaborator

Thanks @bf4! 0.25.2 is released

@bf4 bf4 deleted the fail_flipper branch August 25, 2022 23:26
true
end

# Public: Removes a feature from the set of known features.
def remove(feature)
@client.srem FeaturesKey, feature.key
if redis_sadd_returns_boolean?
@client.srem? FeaturesKey, feature.key
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at https://github.com/mperham/sidekiq/issues 5484 I guess we could have

-          @client.srem FeaturesKey, feature.key
+          @client.srem FeaturesKey, [feature.key]

I'm no redis expert, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redis::Deprecated: Redis#sadd will always return an Integer in Redis 5.0.0. Use Redis#sadd? instead
3 participants